package com.spring.framework.model.xml;


import lombok.ToString;

/**
 * @author 徐伟智
 */
@ToString
@SuppressWarnings("all")
public class Book {
	/**
	 * 依赖的两个属性
	 */
	private String bookName;
	private String author;
	private String address;

	/**
	 * 测试构造器依赖注入
	 */
	public Book(String bookName, String author) {
		this.bookName = bookName;
		this.author = author;
		System.out.println("构造器依赖注入");
	}

	public void setAddress(String address) {
		System.out.println("set 属性注入");
		this.address = address;
	}
}
